{include file="./include/header.tpl"}
<div id="ui_loginform">
	<form id="loginform" action="loginaction.php" method="post">
		<h2>Admin Login</h2>
		<ul>
			<li>
				<input type="text" id="username" name="username" value="" size="30" />
				<span><label for="username">{#login_username#}</label></span>
			</li>
			<li>
				<input type="password" id="password" name="password" value="" size="30" />
				<span><label for="userpassword">{#login_password#}</label></span>
			</li>
			<li>
				<input type="submit" name="btnsubmit" id="btnsubmit" value="{#btn_submit_login#}" />
			</li>
		</ul>
		<input type="hidden" id="action" name="action" value="login" />
	</form>
</div>
{include file="./include/footer.tpl"}
{literal}
<script type="text/javascript">
$(document).ready(function(){
	$("#loginform").bind("submit", function(){
		var userName = $("#username").val();
		var userpwd = $("#password").val();
		
		if (userName == "" ||  userpwd == "") {
			alert("miss username or password");
			return false;
		}
		
		$this.post();
	});
});
</script>
{/literal}